﻿#region MySql
//using SqlSugar;

//namespace Common.Framework.Core.Common
//{
//    /// <summary>
//    /// 
//    /// </summary>
//    public class BaseEntity
//    {
//        /// <summary>
//        /// 主键
//        /// </summary>
//        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = false)]
//        public System.Int64 Id { get; set; }

//        /// <summary>
//        /// 删除标记(0:未删除;1:已删除)
//        /// </summary>
//        [SugarColumn(ColumnName = "delete_flag")]
//        public System.Int32? DeleteFlag { get; set; }

//        /// <summary>
//        /// 创建时间
//        /// </summary>
//        [SugarColumn(ColumnName = "create_time")]
//        public System.DateTime? CreateTime { get; set; }

//        /// <summary>
//        /// 更新时间
//        /// </summary>
//        [SugarColumn(ColumnName = "update_time")]
//        public System.DateTime? UpdateTime { get; set; }
//    }
//}
#endregion

#region SqlServer
using SqlSugar;

namespace Common.Framework.Core.Common
{
    /// <summary>
    /// 
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = false)]
        public System.Int64 Id { get; set; }

        /// <summary>
        /// 删除标记(0:未删除;1:已删除)
        /// </summary>
        [SugarColumn(ColumnName = "DeleteFlag")]
        public System.Int32? DeleteFlag { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SplitField]
        [SugarColumn(ColumnName = "CreateTime")]
        public System.DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateTime")]
        public System.DateTime? UpdateTime { get; set; }
    }
}
#endregion